package com.petlab.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.petlab.dao.RoleDao;
import com.petlab.model.Role;
import com.petlab.service.RoleService;

@Component("roleService")
public class RoleServiceImpl implements RoleService {

	private RoleDao roleDao;

	public RoleDao getRoleDao() {
		return roleDao;
	}

	@Resource
	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}

	public void add(Role role) {
		// TODO Auto-generated method stub
		roleDao.saveRole(role);
	}

}
